package com.example.permissionsystem1_1.businessFunction.controller.entity.reqDto.roleInfoReqDto;

import com.example.permissionsystem1_1.common.entity.baseReqDto.BaseInsertReqDto;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
public class RoleInfoInsertReqDto extends BaseInsertReqDto {
    @NotBlank(message ="不能为null")
    private String roleName;
    @Length(min=6,max=6,message = "编码只能是6位数字")
    private String roleCode;
    private String roleDesc;
}
